
import { axios } from '@/utils/request'

const api = {
    createSign: '/system/user/autograph/create', // 签名管理
    getSign: '/system/user/autograph/all',
    getUserInfo: '/archives/user/info/getUserInfo',
    getAllUser: '/archives/user/info/getAll',
    getReward: '/archives/user/info/getUserRewardsPunish', // 奖惩记录
    getUserInfoHistory: '/archives/user/info/getUserInfoHistory', // 历史列表
    getUserOfficeHistory: '/archives/user/office/getUserOfficeHistory', // 任职信息历史数据
    getUserContractHistory: '/archives/user/contract/getUserContractHistory', // 合同历史
    getUserTrainHistory: '/archives/user/train/getUserTrainHistory', // 培训历史
    getUserWorkHistory: '/archives/user/work/getUserWorkHistory', // 履历历史
    getUserEduHistory: '/archives/user/edu/getUserEduHistory', // 教育历史
    getUserInfoVerify: '/archives/user/info/getUserInfoVerify', // 审核列表
    verifyUserInfo: '/archives/user/info/verifyUserInfo', // 审核
    updateUserInfo: '/archives/user/info/update', // 修改
    deleteUserInfo: '/archives/user/info/delete', // 删除
    createUserInfo: '/archives/user/info/create',
    getUserEdu: '/archives/user/edu/getUserEdu', // 教育信息
    updateUserEdu: '/archives/user/edu/update',
    createUserEdu: '/archives/user/edu/create',
    deleteUserEdu: '/archives/user/edu/delete',
    getUserWork: '/archives/user/work/getUserWork', // 履历信息
    updateUserWork: '/archives/user/work/update',
    createUserWork: '/archives/user/work/create',
    deleteUserWork: '/archives/user/work/delete',
    getUserTrain: '/archives/user/train/getUserTrain', // 培训信息
    updateUserTrain: '/archives/user/train/update',
    createUserTrain: '/archives/user/train/create',
    deleteUserTrain: '/archives/user/train/delete',
    getUserContract: '/archives/user/contract/getUserContract', // 合同信息
    updateUserContract: '/archives/user/contract/update',
    createUserContract: '/archives/user/contract/create',
    deleteUserConTract: '/archives/user/contract/delete',
    getUserOffice: '/archives/user/office/getAll', // 任职信息
    updateUserOffice: '/archives/user/office/update',
    createUserOffice: '/archives/user/office/create',
    deleteUserOffice: '/archives/user/office/delete',
    getUserFamily: '/archives/user/family/getUserFamily', // 家庭信息
    createUserFamily: '/archives/user/family/create',
    updateUserFamily: '/archives/user/family/update',
    deleteUserFamily: '/archives/user/family/delete',
    getUserFamilyHistory: '/archives/user/family/getUserFamilyHistory',
    getIntegrityList: '/archives/user/info/getIntegrityList',
    getUserAvocation: '/archives/user/avocation/getUserAvocation', // 从事信息
    getUserAvocationHistory: '/archives/user/avocation/getUserAvocationHistory',
    deleteUserAvocation: '/archives/user/avocation/delete',
    createUserAvocation: '/archives/user/avocation/create',
    updateUserAvocation: '/archives/user/avocation/update',
    getUserHappyFuneral: '/archives/user/happy/funeral/getUserHappyFuneral', // 婚丧情况
    getUserHappyFuneralHistory: '/archives/user/happy/funeral/getUserHappyFuneralHistory',
    deleteUserHappyFuneral: '/archives/user/happy/funeral/delete',
    createUserHappyFuneral: '/archives/user/happy/funeral/create',
    updateUserHappyFuneral: '/archives/user/happy/funeral/update',
    getUserBonusPenalty: '/archives/user/bonus/getUserBonusPenalty', // 奖惩情况
    getUserBonusPenaltyHistory: '/archives/user/bonus/getUserBonusPenaltyHistory',
    deleteUserBonus: '/archives/user/bonus/delete',
    createUserBonus: '/archives/user/bonus/create',
    updateUserBonus: '/archives/user/bonus/update',
    getUserDuty: '/archives/user/duty/getUserDuty', // 责任信息
    getUserDutyHistory: '/archives/user/duty/getUserDutyHistory',
    deleteUserDuty: '/archives/user/duty/delete',
    createUserDuty: '/archives/user/duty/create',
    updateUserDuty: '/archives/user/duty/update',
    getUserTip: '/archives/user/tip/getUserTipOff', // 被举报控告
    getUserTipOffHistory: '/archives/user/tip/getUserTipOffHistory',
    deleteUserTip: '/archives/user/tip/delete',
    createUserTip: '/archives/user/tip/create',
    updateUserTip: '/archives/user/tip/update',
    getUserHouse: '/archives/user/house/getUserHouse', // 住房情况
    deleteUserHouse: '/archives/user/house/delete',
    createUserHouse: '/archives/user/house/create',
    updateUserHouse: '/archives/user/house/update',
    getUserHouseHistory: '/archives/user/house/getUserHouseHistory',
    getUserMarrige: '/archives/user/marriage/getUserMarriage', // 婚姻变化情况
    getUserMarriageHistory: '/archives/user/marriage/getUserMarriageHistory',
    deleteUserMarriage: '/archives/user/marriage/delete',
    createUserMarriage: '/archives/user/marriage/create',
    updateUserMarriage: '/archives/user/marriage/update',
    getUserGift: '/archives/user/gift/getUserGiftDispose', // 礼物拒收情况
    getUserGiftHistory: '/archives/user/gift/getUserGiftDisposeHistory',
    deleteUserGift: '/archives/user/gift/delete',
    createUserGift: '/archives/user/gift/create',
    updateUserGift: '/archives/user/gift/update',
    getUserTalk: '/archives/user/talk/getUserTalk', // 谈话情况
    getUserTalkHistory: '/archives/user/talk/getUserTalkHistory',
    createUserTalk: '/archives/user/talk/create',
    deleteUserTalk: '/archives/user/talk/delete',
    updateUserTalk: '/archives/user/talk/update',
    saveUserIntegrity: '/archives/user/info/saveUserIntegrity',
    getUserAppraisalRecord: '/archives/user/info/getUserAppraisalRecord',
    getExpertiseAll: '/archives/user/expertise/all', // 专业技术职务
    createExpertise: '/archives/user/expertise/create', // 专业技术职务
    updateExpertise: '/archives/user/expertise/update', // 专业技术职务
    deleteExpertise: '/archives/user/expertise/delete', // 专业技术职务
    getQualificationAll: '/archives/user/qualification/all', // 执业资格信息
    createQualification: '/archives/user/qualification/create',
    updateQualification: '/archives/user/qualification/update',
    deleteQualification: '/archives/user/qualification/delete',
}

export function createExpertise(data) {
    return axios({
        url: api.createExpertise,
        method: 'post',
        data
    })
}

export function updateExpertise(data) {
    return axios({
        url: api.updateExpertise,
        method: 'put',
        data
    })
}

export function deleteExpertise(id, data = {}) {
    return axios({
        url: `${api.deleteExpertise}/${id}`,
        method: 'delete',
        data
    })
}

export function deleteQualification(id, data = {}) {
    return axios({
        url: `${api.deleteQualification}/${id}`,
        method: 'delete',
        data
    })
}

export function createQualification(data) {
    return axios({
        url: api.createQualification,
        method: 'post',
        data
    })
}

export function updateQualification(data) {
    return axios({
        url: api.updateQualification,
        method: 'put',
        data
    })
}


export function getExpertiseAll(params) {
    return axios({
        url: api.getExpertiseAll,
        method: 'get',
        params
    })
}

export function getQualificationAll(params) {
    return axios({
        url: api.getQualificationAll,
        method: 'get',
        params
    })
}

// getUserAppraisalRecord
export function getUserAppraisalRecord(params) {
    return axios({
        url: api.getUserAppraisalRecord,
        method: 'get',
        params
    })
}

// getSign
export function getSign(params) {
    return axios({
        url: api.getSign,
        method: 'get',
        params
    })
}

export function removeSign(ids) {
    return axios({
        url: `/system/user/autograph/delete/${ids}`,
        method: 'delete'
    })
}

// createSign
export function createSign(data) {
    return axios({
        url: api.createSign,
        method: 'post',
        data
    })
}

export function getReward(params) {
    return axios({
        url: api.getReward,
        method: 'get',
        params
    })
}

export function deleteUserTip(id, params = {}) {
    return axios({
        url: `${api.deleteUserTip}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserDuty(id, params = {}) {
    return axios({
        url: `${api.deleteUserDuty}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserHouse(id, params = {}) {
    return axios({
        url: `${api.deleteUserHouse}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserGift(id, params = {}) {
    return axios({
        url: `${api.deleteUserGift}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserTalk(id, params = {}) {
    return axios({
        url: `${api.deleteUserTalk}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserMarriage(id, params = {}) {
    return axios({
        url: `${api.deleteUserMarriage}/${id}`,
        method: 'delete',
        params
    })
}

// deleteUserBonus
export function deleteUserBonus(id, params = {}) {
    return axios({
        url: `${api.deleteUserBonus}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserHappyFuneral(id, params = {}) {
    return axios({
        url: `${api.deleteUserHappyFuneral}/${id}`,
        method: 'delete',
        params
    })
}

export function getUserHappyFuneralHistory(id, params = {}) {
    return axios({
        url: `${api.getUserHappyFuneralHistory}/${id}`,
        method: 'get',
        params
    })
}

// getUserHappyFuneral
export function getUserHappyFuneral(id, params = {}) {
    return axios({
        url: `${api.getUserHappyFuneral}/${id}`,
        method: 'get',
        params
    })
}

export function createUserWork(data) {
    return axios({
        url: api.createUserWork,
        method: 'post',
        data
    })
}

export function createUserEdu(data) {
    return axios({
        url: api.createUserEdu,
        method: 'post',
        data
    })
}

export function createUserTrain(data) {
    return axios({
        url: api.createUserTrain,
        method: 'post',
        data
    })
}

// createUserContract
export function createUserContract(data) {
    return axios({
        url: api.createUserContract,
        method: 'post',
        data
    })
}

// createUserOffice
export function createUserOffice(data) {
    return axios({
        url: api.createUserOffice,
        method: 'post',
        data
    })
}

// createUserDuty
export function createUserDuty(data) {
    return axios({
        url: api.createUserDuty,
        method: 'post',
        data
    })
}

// createUserHouse
export function createUserHouse(data) {
    return axios({
        url: api.createUserHouse,
        method: 'post',
        data
    })
}

// saveUserIntegrity
export function saveUserIntegrity(data) {
    return axios({
        url: api.saveUserIntegrity,
        method: 'post',
        data
    })
}

export function createUserMarriage(data) {
    return axios({
        url: api.createUserMarriage,
        method: 'post',
        data
    })
}

// createUserAvocation
export function createUserAvocation(data) {
    return axios({
        url: api.createUserAvocation,
        method: 'post',
        data
    })
}

// createUserHappyFuneral
export function createUserHappyFuneral(data) {
    return axios({
        url: api.createUserHappyFuneral,
        method: 'post',
        data
    })
}

export function createUserGift(data) {
    return axios({
        url: api.createUserGift,
        method: 'post',
        data
    })
}

// createUserBonus
export function createUserBonus(data) {
    return axios({
        url: api.createUserBonus,
        method: 'post',
        data
    })
}

// createUserTip
export function createUserTip(data) {
    return axios({
        url: api.createUserTip,
        method: 'post',
        data
    })
}

// createUserFamily
export function createUserFamily(data) {
    return axios({
        url: api.createUserFamily,
        method: 'post',
        data
    })
}

export function createUserTalk(data) {
    return axios({
        url: api.createUserTalk,
        method: 'post',
        data
    })
}

export function updateUserTip(data) {
    return axios({
        url: api.updateUserTip,
        method: 'put',
        data
    })
}

export function updateUserDuty(data) {
    return axios({
        url: api.updateUserDuty,
        method: 'put',
        data
    })
}

export function updateUserHouse(data) {
    return axios({
        url: api.updateUserHouse,
        method: 'put',
        data
    })
}

export function updateUserGift(data) {
    return axios({
        url: api.updateUserGift,
        method: 'put',
        data
    })
}

export function updateUserTalk(data) {
    return axios({
        url: api.updateUserTalk,
        method: 'put',
        data
    })
}

export function updateUserMarriage(data) {
    return axios({
        url: api.updateUserMarriage,
        method: 'put',
        data
    })
}

// updateUserBonus
export function updateUserBonus(data) {
    return axios({
        url: api.updateUserBonus,
        method: 'put',
        data
    })
}

export function updateUserHappyFuneral(data) {
    return axios({
        url: api.updateUserHappyFuneral,
        method: 'put',
        data
    })
}

export function updateUserAvocation(data) {
    return axios({
        url: api.updateUserAvocation,
        method: 'put',
        data
    })
}

export function deleteUserAvocation(id, params = {}) {
    return axios({
        url: `${api.deleteUserAvocation}/${id}`,
        method: 'delete',
        params
    })
}

// getUserTipOffHistory
export function getUserTipOffHistory(id, params = {}) {
    return axios({
        url: `${api.getUserTipOffHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserDutyHistory(id, params = {}) {
    return axios({
        url: `${api.getUserDutyHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserHouseHistory(id, params = {}) {
    return axios({
        url: `${api.getUserHouseHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserGiftHistory(id, params = {}) {
    return axios({
        url: `${api.getUserGiftHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserTalkHistory(id, params = {}) {
    return axios({
        url: `${api.getUserTalkHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserMarriageHistory(id, params = {}) {
    return axios({
        url: `${api.getUserMarriageHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserBonusPenaltyHistory(id, params = {}) {
    return axios({
        url: `${api.getUserBonusPenaltyHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserAvocationHistory(id, params = {}) {
    return axios({
        url: `${api.getUserAvocationHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserFamilyHistory(id, params = {}) {
    return axios({
        url: `${api.getUserFamilyHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserTalk(id, params = {}) {
    return axios({
        url: `${api.getUserTalk}/${id}`,
        method: 'get',
        params
    })
}

export function getUserGift(id, params = {}) {
    return axios({
        url: `${api.getUserGift}/${id}`,
        method: 'get',
        params
    })
}

export function getUserMarrige(id, params = {}) {
    return axios({
        url: `${api.getUserMarrige}/${id}`,
        method: 'get',
        params
    })
}

// getUserHouse
export function getUserHouse(id, params = {}) {
    return axios({
        url: `${api.getUserHouse}/${id}`,
        method: 'get',
        params
    })
}

export function getUserTip(id, params = {}) {
    return axios({
        url: `${api.getUserTip}/${id}`,
        method: 'get',
        params
    })
}

export function getUserFamily(id, params = {}) {
    return axios({
        url: `${api.getUserFamily}/${id}`,
        method: 'get',
        params
    })
}

export function updateUserFamily(data) {
    return axios({
        url: api.updateUserFamily,
        method: 'put',
        data
    })
}

export function deleteUserFamily(id, params = {}) {
    return axios({
        url: `${api.deleteUserFamily}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserWork(id, params = {}) {
    return axios({
        url: `${api.deleteUserWork}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserEdu(id, params = {}) {
    return axios({
        url: `${api.deleteUserEdu}/${id}`,
        method: 'delete',
        params
    })
}

export function deleteUserConTract(id, params = {}) {
    return axios({
        url: `${api.deleteUserConTract}/${id}`,
        method: 'delete',
        params
    })
}

// deleteUserOffice
export function deleteUserOffice(id, params = {}) {
    return axios({
        url: `${api.deleteUserOffice}/${id}`,
        method: 'delete',
        params
    })
}

// deleteUserTrain
export function deleteUserTrain(id, params = {}) {
    return axios({
        url: `${api.deleteUserTrain}/${id}`,
        method: 'delete',
        params
    })
}

// getUserDuty
export function getUserDuty(id, params = {}) {
    return axios({
        url: `${api.getUserDuty}/${id}`,
        method: 'get',
        params
    })
}

// 奖惩情况
export function getUserBonusPenalty(id, params = {}) {
    return axios({
        url: `${api.getUserBonusPenalty}/${id}`,
        method: 'get',
        params
    })
}

export function getUserAvocation(id, params = {}) {
    return axios({
        url: `${api.getUserAvocation}/${id}`,
        method: 'get',
        params
    })
}



// getIntegrityList
export function getIntegrityList(params) {
    return axios({
        url: api.getIntegrityList,
        method: 'get',
        params
    })
}

// getUserInfo
export function getUserInfo(id, params = {}) {
    return axios({
        url: `${api.getUserInfo}/${id}`,
        method: 'get',
        params
    })
}

export function getUserTrainHistory(id, params = {}) {
    return axios({
        url: `${api.getUserTrainHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserEduHistory(id, params = {}) {
    return axios({
        url: `${api.getUserEduHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserWorkHistory(id, params = {}) {
    return axios({
        url: `${api.getUserWorkHistory}/${id}`,
        method: 'get',
        params
    })
}

export function getUserContractHistory(id, params = {}) {
    return axios({
        url: `${api.getUserContractHistory}/${id}`,
        method: 'get',
        params
    })
}

// getUserOfficeHistory
export function getUserOfficeHistory(id, params = {}) {
    return axios({
        url: `${api.getUserOfficeHistory}/${id}`,
        method: 'get',
        params
    })
}

// deleteUserInfo
export function deleteUserInfo(id, params = {}) {
    return axios({
        url: `${api.deleteUserInfo}/${id}`,
        method: 'delete',
        params
    })
}

export function getUserOffice(id, params = {}) {
    return axios({
        url: `${api.getUserOffice}/${id}`,
        method: 'get',
        params
    })
}

export function updateUserOffice(data) {
    return axios({
        url: api.updateUserOffice,
        method: 'put',
        data
    })
}

export function getUserContract(id, params = {}) {
    return axios({
        url: `${api.getUserContract}/${id}`,
        method: 'get',
        params
    })
}

// updateUserContract
export function updateUserContract(data) {
    return axios({
        url: api.updateUserContract,
        method: 'put',
        data
    })
}

export function getUserTrain(id, params = {}) {
    return axios({
        url: `${api.getUserTrain}/${id}`,
        method: 'get',
        params
    })
}

// updateUserTrain
export function updateUserTrain(data) {
    return axios({
        url: api.updateUserTrain,
        method: 'put',
        data
    })
}

export function getUserWork(id, params = {}) {
    return axios({
        url: `${api.getUserWork}/${id}`,
        method: 'get',
        params
    })
}

export function updateUserWork(data) {
    return axios({
        url: api.updateUserWork,
        method: 'put',
        data
    })
}

export function getUserEdu(id, params = {}) {
    return axios({
        url: `${api.getUserEdu}/${id}`,
        method: 'get',
        params
    })
}

export function updateUserEdu(data) {
    return axios({
        url: api.updateUserEdu,
        method: 'put',
        data
    })
}

// createUserInfo
export function createUserInfo(data) {
    return axios({
        url: api.createUserInfo,
        method: 'post',
        data
    })
}

export function updateUserInfo(data) {
    return axios({
        url: api.updateUserInfo,
        method: 'put',
        data
    })
}

// verifyUserInfo
export function verifyUserInfo(data) {
    return axios({
        url: api.verifyUserInfo,
        method: 'put',
        data
    })
}

export function getAllUser(params) {
    return axios({
        url: api.getAllUser,
        method: 'get',
        params
    })
}

// getUserInfoHistory
export function getUserInfoHistory(id, params = {}) {
    return axios({
        url: `${api.getUserInfoHistory}/${id}`,
        method: 'get',
        params
    })
}

// getUserInfoVerify
export function getUserInfoVerify(params) {
    return axios({
        url: api.getUserInfoVerify,
        method: 'get',
        params
    })
}